<!doctype html>
<html lang="en">
<head>
    <script type="text/javascript" src=".././static/js/public-head.js"></script>

    <script>
        $(function() {

        })
    </script>
</head>

<body style="overflow-y: hidden" >

<div class="layui-card">
    <div class="layui-form layui-card-header">
        <div class="layui-form-item">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input class="layui-input"  id="funcName" autocomplete="off" placeholder="输入名称或编号">
                </div>
            </div>
            <div class="layui-inline">
                <button class="layui-btn"   onclick="query()">搜索</button>
                <button class="layui-btn" onclick="add(null);">新增</button>
                <button class="layui-btn" onclick="openAll();">展开或折叠全部</button>
            </div>
        </div>
    </div>
    <div class="layui-card-body">
        <hr>
        <table class="layui-hidden" id="treeTable" lay-filter="treeTable"></table>
    </div>
</div>



</body>
</html>


<script type="text/javascript" src="js/function.js"></script>


<script type="text/html" id="fun-state">
    <!-- 这里的 checked 的状态只是演示 -->
    <input type="checkbox" name="state"  _id="{{d.id}}"  value="{{d.state}}" lay-skin="switch" lay-text="是|否" lay-filter="filter-func-checked" {{ d.state == 1 ? 'checked' : '' }}>
</script>

<script type="text/html" id="mobile">
    <!-- 这里的 checked 的状态只是演示 -->
    <input type="checkbox" name="mobile"  _id="{{d.id}}"  value="{{d.mobile}}" lay-skin="switch" lay-text="是|否" lay-filter="filter-func-checked" {{ d.mobile == 1 ? 'checked' : '' }}>
</script>